package net.oschina.app.cwq;

import android.support.v4.app.Fragment;

/**
 * Created by Admin on 2017/7/16.
 */

class FragmentFactory {

    // 根据position来返回响应的Fragment
    public static Fragment createFragment(int position){
        Fragment fragment=null;
        switch (position){
            case 0:
                fragment=new JQFragment();
                break;
            case 1:
                fragment=new WDFragment();
                break;
            case 2:
                break;
            case 3:

        }
        return fragment;
    }

}
